/*
 * SetTireRun_SetTireRun_Transition.cpp
 *
 * Transition from Set Tire Run mode state to itself
 *
 * Author: Zachary Masiello
 * Author: Peter-John Rowe
 */


#include "SetTireRun_SetTireRun_Transition.h"
#include "Cyclometer.h"

SetTireRun_SetTireRun_Transition::SetTireRun_SetTireRun_Transition(Cyclometer* cyclo,IState* defNextState,int id) {
	context = cyclo;
	nextState = defNextState;
	eventID = id;
}

SetTireRun_SetTireRun_Transition::~SetTireRun_SetTireRun_Transition() {
	// TODO Auto-generated destructor stub
}

IState* SetTireRun_SetTireRun_Transition::accept() {
	action();
	return nextState;
}

bool SetTireRun_SetTireRun_Transition::guard() {
	return true;
}

void SetTireRun_SetTireRun_Transition::action() {
	context->incrementTireSize();
}
